<%@page import="java.util.ArrayList"%>
<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<% response.setContentType("text/html; charset=UTF-8");%>
<% request.setCharacterEncoding("utf-8");%>
<%@page import="controller.ModuleExamController, dto.*"%>

<%
    ModuleExamController ctrl = new ModuleExamController();
    ArrayList dsLoaiDeThi = ctrl.getAllLoaiDeThi();
    for (int i = 0; i < dsLoaiDeThi.size(); i++) {
        LoaiDeThiDTO info = (LoaiDeThiDTO) dsLoaiDeThi.get(i);
        out.println("<div class='item " + Integer.toString(info.getMaLDT())
                + "' onclick=\" dethi_load('" + Integer.toString(info.getMaLDT()) + "'); \" >");

        out.println("<div class='header'>Loại đề thi : <b>");
        out.println(info.getTenloai());
        out.println("</b></div>");

        out.println("<div class='info'>Thời gian làm bài : <b>");
        out.println(Integer.toString(info.getThoigian()));
        out.println("  phút</b></div>");

        out.println("<div class='info'>Số câu hỏi dễ : <b>");
        out.println(Integer.toString(info.getSocaude()));
        out.println("</b></div>");

        out.println("<div class='info'>Số câu hỏi trung bình : <b>");
        out.println(Integer.toString(info.getSocautb()));
        out.println("</b></div>");

        out.println("<div class='info'>Số câu hỏi khó : <b>");
        out.println(Integer.toString(info.getSocaukho()));
        out.println("</b></div>");

        out.println("</div>");
    }
%>